package com.iot08.common.constant;

/**
 * @version 1.0
 * @Description:
 * @time: 2020/10/12 10:18
 * @author: Rock
 */
public class Const {
    public static final String SESSION_SECURITY_CODE = "sessionSecCode";
    public static final String SESSION_USER = "sessionUser";
    /**
     * 当前用户的按钮菜单
     */
    public static final String SESSION_USER_BUT = "sessionUserBut";
    public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
    public static final String SESSION_menuList = "menuList";            //当前菜单
    public static final String SESSION_allmenuList = "allmenuList";        //全部菜单
    public static final String SESSION_QX = "QX";
    public static final String SESSION_userpds = "userpds";
    public static final String SESSION_USERROL = "USERROL";                //用户对象
    public static final String SESSION_USERNAME = "USERNAME";            //用户名
    public static final String TRUE = "T";
    public static final String FALSE = "F";
    public static final String LOGIN = "/login";                //登录地址
    public static final String SYSNAME = "admin/config/SYSNAME.txt";    //系统名称路径
    public static final String PAGE = "admin/config/PAGE.txt";            //分页条数配置路径
    public static final String EMAIL = "admin/config/EMAIL.txt";        //邮箱配置路径
    public static final String SMS1 = "admin/config/SMS1.txt";            //短信账户配置路径1
    public static final String SMS2 = "admin/config/SMS2.txt";            //短信账户配置路径2
    public static final String FWATERM = "admin/config/FWATERM.txt";    //文字水印配置路径
    public static final String IWATERM = "admin/config/IWATERM.txt";    //图片水印配置路径
    public static final String WEIXIN = "admin/config/WEIXIN.txt";    //微信配置路径
    public static final String FILEPATHIMG = "uploadFiles/uploadImgs/";    //图片上传路径
    public static final String FILEPATHFILE = "uploadFiles/file/";        //文件上传路径
    public static final String FILEPATHTWODIMENSIONCODE = "uploadFiles/twoDimensionCode/"; //二维码存放路径
    //public static final String NO_INTERCEPTOR_PATH = ".*/((login)|(logout)|(code)|(app)|(weixin)|(static)|(main)|(websocket)|(accounts)|(image)|(devices)||(devicetoken)||(chatGroups)||(getway)||(20000)||(location)||(test)).*";	//不对匹配该值的访问路径拦截（正则）

    /**
     * APP Constants
     */
    //app注册接口_请求协议参数)
    public static final String[] APP_REGISTERED_PARAM_ARRAY = new String[]{"countries", "uname", "passwd", "title", "full_name", "company_name", "countries_code", "area_code", "telephone", "mobile"};
    public static final String[] APP_REGISTERED_VALUE_ARRAY = new String[]{"国籍", "邮箱帐号", "密码", "称谓", "名称", "公司名称", "国家编号", "区号", "电话", "手机号"};

    //app根据用户名获取会员信息接口_请求协议中的参数
    public static final String[] APP_GETAPPUSER_PARAM_ARRAY = new String[]{"USERNAME"};
    public static final String[] APP_GETAPPUSER_VALUE_ARRAY = new String[]{"用户名"};

    public static final int VENDER_8888 = 8888;
    public static final Integer VENDER_20000 = 20000;

    public static final String OPERATION_ADD = "add";
    public static final String OPERATION_UPDATE = "update";
    public static final String OPERATION_DELETE = "delete";
    public static final String OPERATION_REMOVE = "remove";

    /**
     * 0=系统账号、1=渠道账号
     */
    public static final int SYSUSER_TYPE = 0;
    public static final int CHANNELUSER_TYPE = 1;

    public static final String DEFAULT_ACCOUNT_PASSWORD = "123456";
    public static final String DEFAULT_DEVICE_AUTHCODE = "824650";

    public static final String DEFAULT_DEVICE_NAME = "宝贝";
    public static final String DEFAULT_JPG = "default.jpg";
    public static final int DEFAULT_DEVICE_VOLUME = 6;
    public static final int DEFAULT_DEVICE_LOCMODE = 0;

    public static final String MD5_KEY = "SKoskdsSJjdfla";

    //一般通用的限制数量
    public static final int COMMON_LIMIT_COUNT = 50;

    public static final Integer INT_1 = new Integer(1);
    public static final Integer INT_0 = new Integer(0);

    /*           ====畅行物联网卡====            */
    public static final String CX_APP_ID = "896DF3F2DF6E5D40BEDBDB4D998B5E0F";
    public static final String CX_APP_SECRET = "7DFAB66A7B144748E0793F07263A7273";
    public static final int CX_NUM = 10;
    //查询卡号接口
    public static final String CX_GET_SIM_URL = "http://iapi.ai-boss.net/api/v2/third/getSimByParam";
    //查询白名单
    public static final String CX_VOICE_WHITE_URL = "http://iapi.ai-boss.net/api/v2/queryVoiceWhiteList";
    //查询添加/删除白名单 (现在说是删除暂不可用)
    public static final String CX_VOICE_WHITE_MANAGER_URL = "http://iapi.ai-boss.net/api/v2/addOrDelVoiceWhiteManager";
    //修改白名单昵称
    public static final String CX_UPDATE_WHITE_URL = "http://iapi.ai-boss.net/api/v2/updateWhiteList";


    //默认的计步目标步数
    public static final int DEF_TARGET_STEP = 6000;

    public static final int LIMIT_DISTANCE_OTHER = 100;
    public static final int LIMIT_DISTANCE_LBS = 500;

    //所有记录的失效时间天数 3个月 (定位轨迹除外)
    public static final int EXPIRY_TIME_DAY = 30 * 3;

    //定位轨迹的 是7天后 23:59 失效
    public static final int LOC_TIME_DAY = 7;

    //生词记录 是7天后 23:59 失效
    public static final int WORD_TIME_DAY = 7;

    //判断轨迹点生成的距离半径范围,单位/米
    public static final int DISTANCE_RADIUS_WITH_LOC_POINT = 150;

    //一天的时长，单位/秒
    public static final int ONE_DAY_TIME = 60 * 60 * 24;


    public static final double ANIMAL_HEAT_MIN = 36;
    public static final double ANIMAL_HEAT_MAX = 37.2;


}
